package handax.entities;

/**
 *
 * @author Andreas Apostolidis
 */
public class Rating {

    //Column name = "REST_ID"
    private int restId;
    //Column name = "USERNAME"
    private String username;
    //Column name = "QUALITY"
    private float quality;
    //Column name = "PRICE"
    private float price;
    //Column name = "SERVICE_TIME" 
    private float serviceTime;
    //Column name = "AVERAGE_RATING" 
    private float averageRating;

    //Constructors
    public Rating() {
    }

    public Rating(int restId, String username, float quality, float price, float serviceTime, float averageRating) {
        this.restId = restId;
        this.username = username;
        this.quality = quality;
        this.price = price;
        this.serviceTime = serviceTime;
        this.averageRating = averageRating;
    }

    //Setters and Getters
    public int getRestId() {
        return restId;
    }

    public void setRestId(int restId) {
        this.restId = restId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public float getQuality() {
        return quality;
    }

    public void setQuality(float quality) {
        this.quality = quality;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public float getServiceTime() {
        return serviceTime;
    }

    public void setServiceTime(float serviceTime) {
        this.serviceTime = serviceTime;
    }

    public float getAverageRating() {
        return averageRating;
    }

    public void setAverageRating(float averageRating) {
        this.averageRating = averageRating;
    }
}